package cn.edu.scau.cmi.zhangweiming.SingletonClient;
import java.net.URL;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.ResourceBundle;

import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.scene.control.Button;
import javafx.scene.control.TextArea;
import javafx.scene.control.TextField;

public class Marshal_controller {
	   @FXML
	   private Button creat;
	   @FXML
	   private TextField name;
	   @FXML
	   private TextArea	output;
	   
	   public void show(ActionEvent event) {
		   String text=name.getText();
		   Marshal mar=Marshal.getInstance(text);
		   if(mar==null)
			   output.appendText("已经10个人了"+"\n");
		   else {
			   output.appendText(mar.getname()+"@"+mar.getnum()+"\n");
		   }
	   }
}
